// 格式化字符串
String.prototype.format = function (...args) {
  const a = args;
  const str = this.replace(/{(\d+)}/g, function (m, i) {
    return a[i];
  });

  return str;
};
